package edu.kjxy.demo0308;

import java.util.Scanner;

public class demo04b {

	public static void main(String[] args) {
		System.out.println("请输入一个整数1-7：");
		
		Scanner in = new Scanner(System.in);
		int day = in.nextInt();
		in.close();

		switch(day)
		{
			case 1, 2, 3, 4, 5 -> System.out.println("工作日");
			case 6, 7 -> System.out.println("休息日");
			default -> System.out.println("输入错误！");
		}
		
		String info = switch(day) {
			case 1, 2, 3, 4, 5 -> "工作日";
			case 6, 7 -> "休息日";
			default -> "输入错误";
		};
		System.out.println(info);
	}

}
